{if $smarty.request.is_ajax neq 1}
<include file="inc:header" />	
<?php
$this->_var['hide_back'] = 1;
?>
<div class="page" id='{$data.act}'>
<include file="inc:title" />
<div class="content pull-to-refresh-content">
{/if}
<!-- 这里是页面内容区 -->

<div class="pull-to-refresh-layer">
    <div class="preloader"></div>
    <div class="pull-to-refresh-arrow"></div>
</div>
<!--网站主页-->
    <div class="swiper-container" data-space-between='10'>
	    <div class="swiper-wrapper">
	    	{foreach from=$data.index_list.adv_list item=adv key=k}
	    	<div class="swiper-slide"><a href="#" onclick="RouterURL('{$adv.data}','#adv_{$adv.open_url_type}',1);" style="background-image:url('{$adv.img}')"></a></div>
	    	{/foreach}
	    </div>
	    {if count($data.index_list.adv_list) >1}
	    <div class="swiper-pagination"></div>
	    {/if}
	 </div>	
		{include file="./inc/nav.html"}
		
		<div class="blank055"></div>
		{if $data.index_list.rec_deal_list}		
		<ul class="recommended_nav_2">
				{foreach from=$data.index_list.rec_deal_list item="deal" } 
			<li class="clearfix">
				<a href="#" onclick="RouterURL('{wap_url a="index" r="deal" p="id=$deal.id"}','#deal',2);">
					<div class="novice f_l">
						{if $deal.is_advance eq 1 && $deal.start_time gt TIME_UTC}
						<img src="{$TMPL}/images/novice_0.png" width="100%" height="100%"/>
						{elseif $deal.is_new eq 1}
						<img src="{$TMPL}/images/novice.png" width="100%" height="100%"/>
						{/if}
					</div>
					<div class="title_nav bb1">
						{if $deal.is_wait eq 1}<span class="state  c666666">
			            	{else}
							{if $deal.deal_status eq 0}<span class="state  c666666">{/if}
							{if $deal.deal_status eq 1 && $deal.remain_time gt 0}<span class="state  c56b1ea">{/if}
							{if $deal.deal_status eq 1 && $deal.remain_time lte 0}<span class="state  c666666">{/if}
							{if $deal.deal_status eq 2}<span class="state  ea544a">{/if}
							{if $deal.deal_status eq 3}<span class="state  c666666">{/if}
							{if $deal.deal_status eq 4}<span class="state  c66d191">{/if}
							{if $deal.deal_status eq 5}<span class="state  c666666">{/if}
							{/if}
								
							{if $deal.is_wait eq 1}未开始
			            	{else}
							{if $deal.deal_status eq 0}等待材料{/if}
							{if $deal.deal_status eq 1 && $deal.remain_time gt 0}进行中{/if}
							{if $deal.deal_status eq 1 && $deal.remain_time lte 0}已过期{/if}
							{if $deal.deal_status eq 2}已满标{/if}
							{if $deal.deal_status eq 3}已流标{/if}
							{if $deal.deal_status eq 4}还款中{/if}
							{if $deal.deal_status eq 5}已还清{/if}
							{/if}
							</span>
						<span class="name">{$deal.name}</span>
						<span class="r_state">{function name="loantypename" v="$deal.loantype" type=1}</span>
					</div>
					<div class=" con_height">
						<div class="  w_b  pt tc">
							<div class=" tl lv"><i class="big">{function name="round" v=$deal.rate f=0}</i><i class="unit">%</i></div>
							<div class=" tl je"><i class="small">{function name="replacemoney" v=$deal.borrow_amount}</i><i class="unit">万</i></div>
							<div class=" tl sj"><i class="small">{$deal.repay_time}</i><i class="unit">{if $deal.repay_time_type eq 1}月{else}天{/if}</i></div>
						<div class="w_b_f_1"></div>
						<div  class="progress-radial_parent ">
							<div class="progress-radial  progress-{if $deal.deal_status gte 4}100{else}{function name="round" v=$deal.progress_point f=0}{/if}
							{if $deal.is_wait eq 1} c999999
			            	{else}
							{if $deal.deal_status eq 0}  c999999 {/if}
							{if $deal.deal_status eq 1 && $deal.remain_time gt 0}  c56b1ea {/if}
							{if $deal.deal_status eq 1 && $deal.remain_time lte 0}  c999999 {/if}
							{if $deal.deal_status eq 2}  ea544a {/if}
							{if $deal.deal_status eq 3}  c999999  {/if}
							{if $deal.deal_status eq 4}  c66d191  {/if}
							{if $deal.deal_status eq 5}  c999999  {/if}
							{/if}
							"><b></b></div>
						</div>
					</div>
						</div>
						
				</a>
			</li>
			{/foreach}		
		</ul>
		{/if}
		<div class="clear_both init-bar-statics" >
				
				   <div class="posbar">
				   		<div class="col col1" nowpos="0" pos="{$data.virtual_money_1_pos}">
				   			<div class="point"><em></em></div>
				   		</div>
				   		<div class="col col2" nowpos="0" pos="{$data.virtual_money_2_pos}">
				   			<div class="point"><em></em></div>
				   		</div>
				   		<div class="col col3" nowpos="0" pos="{$data.virtual_money_3_pos}">
				   			<div class="point"><em></em></div>
				   		</div>
				   </div>
				   <div class="tit">
				   		<div class="col"><span class="dot dot1 pull-left"></span><span class="pull-left">总计成交额：</span><span class="pull-right"><em>{$data.virtual_money_1}</em>(万元)</span></div>
				   		<div class="col"><span class="dot dot2 pull-left"></span><span class="pull-left">总创造收益：</span><span class="pull-right"><em>{$data.virtual_money_2}</em>(万元)</span></div>
				   		<div class="col"><span class="dot dot3 pull-left"></span><span class="pull-left">本息保证金：</span><span class="pull-right"><em>{$data.virtual_money_3}</em>(万元)</span></div>
				   </div>
		</div>
	     <div class="blank055"></div>		
		<div class="init_title"><div class="hr bb1"></div><p>理财推荐</p></div>
		<div class="blank055"></div>		
		<ul class="recommended_nav_2">
			{foreach from=$data.index_list.deal_list item="deal" } 
			<li class="clearfix" onclick="RouterURL('{wap_url a="index" r="deal" p="id=$deal.id"}','#deal',2);">
				
					<div class="title_nav bb1">
						{if $deal.is_wait eq 1}<span class="state  c666666">
			            	{else}
							{if $deal.deal_status eq 0}<span class="state  c666666">{/if}
							{if $deal.deal_status eq 1 && $deal.remain_time gt 0}<span class="state  c56b1ea">{/if}
							{if $deal.deal_status eq 1 && $deal.remain_time lte 0}<span class="state  c666666">{/if}
							{if $deal.deal_status eq 2}<span class="state  ea544a">{/if}
							{if $deal.deal_status eq 3}<span class="state  c666666">{/if}
							{if $deal.deal_status eq 4}<span class="state  c66d191">{/if}
							{if $deal.deal_status eq 5}<span class="state  c666666">{/if}
							{/if}
								
							{if $deal.is_wait eq 1}未开始
			            	{else}
							{if $deal.deal_status eq 0}等待材料{/if}
							{if $deal.deal_status eq 1 && $deal.remain_time gt 0}进行中{/if}
							{if $deal.deal_status eq 1 && $deal.remain_time lte 0}已过期{/if}
							{if $deal.deal_status eq 2}已满标{/if}
							{if $deal.deal_status eq 3}已流标{/if}
							{if $deal.deal_status eq 4}还款中{/if}
							{if $deal.deal_status eq 5}已还清{/if}
							{/if}
							</span>
						<span class="name">{$deal.name}</span>
						<span class="r_state">{function name="loantypename" v="$deal.loantype" type=1}</span>
					</div>
					<div class=" con_height">
						<div class="  w_b  pt tc">
							<div class=" tl lv"><i class="big">{function name="round" v=$deal.rate f=0}</i><i class="unit">%</i></div>
							<div class=" tl je"><i class="small">{function name="replacemoney" v=$deal.borrow_amount}</i><i class="unit">万</i></div>
							<div class=" tl sj"><i class="small">{$deal.repay_time}</i><i class="unit">{if $deal.repay_time_type eq 1}月{else}天{/if}</i></div>
						<div class="w_b_f_1"></div>
						<div  class="progress-radial_parent ">
							<div class="progress-radial  progress-{if $deal.deal_status gte 4}100{else}{function name="round" v=$deal.progress_point f=0}{/if}
							{if $deal.is_wait eq 1} c999999
			            	{else}
							{if $deal.deal_status eq 0}  c999999 {/if}
							{if $deal.deal_status eq 1 && $deal.remain_time gt 0}  c56b1ea {/if}
							{if $deal.deal_status eq 1 && $deal.remain_time lte 0}  c999999 {/if}
							{if $deal.deal_status eq 2}  ea544a {/if}
							{if $deal.deal_status eq 3}  c999999  {/if}
							{if $deal.deal_status eq 4}  c66d191  {/if}
							{if $deal.deal_status eq 5}  c999999  {/if}
							{/if}
							"><b></b></div>
						</div>
					</div>
				
			</li>
			{/foreach}		
		</ul>
{if $smarty.request.is_ajax neq 1}
<include file="inc:footer" />
{/if}





